package cn.fsd.feignclient;

import cn.fsd.vo.ResultBean;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "dispatch-server", url="localhost:1030")
public interface DispatchFeignClient {

    @GetMapping("/baidu/getGeo") //get + /baidu/getGeo
    public ResultBean<double[]> getGeo(@RequestParam String address);

    @GetMapping("/baidu/getDistenceAndTime") //get + /baidu/getDistenceAndTime
    public ResultBean<double[]> getDistenceAndTime(@RequestParam String origin,@RequestParam String destination);
}
